//
//  CZEmotionLayout.swift
//  表情键盘
//
//  Created by Albert Zhu on 16/10/27.
//  Copyright © 2016年 Albert Zhu. All rights reserved.
//

import UIKit

/// 表情集合视图布局
class CZEmotionLayout: UICollectionViewFlowLayout {

    override func prepare() {
        super.prepare()
    
        guard let collectionView = collectionView else {return}
        
        itemSize = collectionView.bounds.size
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
        
        scrollDirection = .horizontal
    }
}
